package cn.pku.ss.fa.sessionbean;

import java.util.List;

import javax.ejb.Local;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import cn.pku.ss.fa.bean.AlbumBean;
import cn.pku.ss.fa.bean.AlbumNewsBean;
import cn.pku.ss.fa.bean.PhotoBean;

@Local
public interface AlbumManagerLocal {

	public int createAlbum(AlbumBean albumBean);
	public List<AlbumBean> getAlbumsList(int userId);
	public PhotoBean getPhotoBean(int photoId);
	public void updatePhotoName(int photoId, String newName);
	public void updatePhotoDescription(int photoId, String newDescription);
	public List<AlbumNewsBean> getAlbumNewsList(int userId);
	public int createPhoto(int userId, PhotoBean photoBean);
}
